package com.bg.sparkproject.pattern.decorate;

/**
 * @Auther: zhengshunzhi
 * @Date: 2019/1/4 11:10
 * @Description: 装饰者模式
 */
public abstract class Decorate implements Persion {
    protected Persion persion;

    public void setPerson(Persion person) {
        this.persion = person;
    }

    public void eat() {
        persion.eat();
    }
}
